//
//  FoundFirstData.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/08/31
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "FoundFirstData.h"
#import "FoundFirstCategorydoc.h"
#import "FoundFirstOrderdoc.h"
#import "FoundFirstTimedoc.h"
@implementation FoundFirstData

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"CategoryDoc"]) {
        NSMutableArray<FoundFirstCategorydoc *> *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FoundFirstCategorydoc *cateGoryDoc = [FoundFirstCategorydoc modelWithDic:dic];
            [arr addObject:cateGoryDoc];
        }
        self.CategoryDoc = arr;
    } else if ([key isEqualToString:@"OrderDoc"]) {
        NSMutableArray<FoundFirstOrderdoc *> *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FoundFirstOrderdoc *orderDoc = [FoundFirstOrderdoc modelWithDic:dic];
            [arr addObject:orderDoc];
        }
        self.OrderDoc = arr;
    } else if ([key isEqualToString:@"TimeDoc"]) {
        self.TimeDoc = [FoundFirstTimedoc modelWithDic:value];
    }
}




@end
